package com.ssy.lingxi.system.dto.request;

import com.ssy.lingxi.system.entity.FriendUrl;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
* 添加站点实体类
* @author wrc
* @date 2020/6/3
*/
public class SiteAddRequest {
    /**
     * 站点名称
     */
    @Length(max = 20,message = "名字长度不能超过20个字")
    private String name;

    /**
     * 站点域名
     */
    private String domainName;

    /**
     * 平台LOGO
     */
    private String logo;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 国家id
     */
    private Long countryId;

    /**
     * 语言id
     */
    private Long languageId;

    /**
     * 币制id
     */
    private Long currencyId;

    /**
     * 商城id
     */
    @NotNull(message = "商城ID不能为空")
    private List<Long> shopIds;

    /**
     * 站点底部描述
     */
    private String describe;

    /**
     * 站点备案号
     */
    private String putOnRecords;


    /**
     * 链接
     */
    private String url;

    /**
     * 0-不开启多租户 1-开启多租户
     */
    @Min(value = 0, message = "参数值范围为 0-1")
    @Max(value = 1, message = "参数值范围为 0-1")
    @NotNull(message = "是否开启多租户类型不能为空")
    private Integer enableMultiTenancy;


    /**
     * 友情链接集合
     */
    private List<FriendUrl> friendUrls;


    public List<FriendUrl> getFriendUrls() {
        return friendUrls;
    }

    public void setFriendUrls(List<FriendUrl> friendUrls) {
        this.friendUrls = friendUrls;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getCountryId() {
        return countryId;
    }

    public void setCountryId(Long countryId) {
        this.countryId = countryId;
    }

    public Long getLanguageId() {
        return languageId;
    }

    public void setLanguageId(Long languageId) {
        this.languageId = languageId;
    }

    public Long getCurrencyId() {
        return currencyId;
    }

    public void setCurrencyId(Long currencyId) {
        this.currencyId = currencyId;
    }

    public List<Long> getShopIds() {
        return shopIds;
    }

    public void setShopIds(List<Long> shopIds) {
        this.shopIds = shopIds;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getPutOnRecords() {
        return putOnRecords;
    }

    public void setPutOnRecords(String putOnRecords) {
        this.putOnRecords = putOnRecords;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getEnableMultiTenancy() {
        return enableMultiTenancy;
    }

    public void setEnableMultiTenancy(Integer enableMultiTenancy) {
        this.enableMultiTenancy = enableMultiTenancy;
    }
}
